﻿using Castle.ActiveRecord;

namespace FileManager_Server.DataLayer.Castle_Model
{
    [ActiveRecord("FC_ROLE")]
    public class FileRoleDbModel:ActiveRecordBase<FileRoleDbModel>
    {
        [PrimaryKey(PrimaryKeyType.Assigned)]
        public string ROLESID { get; set; }

        [Property]
        public string ROLETYPE { get; set; }
        [Property]
        public string FILESID { get; set; }
        [Property]
        public string RELATIONID { get; set; }
        [Property]
        public bool ISREAD { get; set; }
        [Property]
        public bool ISCREATE { get; set; }
        [Property]
        public bool ISDELETE { get; set; }
        [Property]
        public bool ISUPDATE { get; set; }
        [Property]
        public bool ISINHERIT { get; set; }
        [Property]
        public string INHERITFILESID { get; set; }
        [Property]
        public string FLAGSID { get; set; }
        [Property]
        public bool ISOWNER { get; set; }
        [Property]
        public bool ISALLOWALLOCATE { get; set; }
        [Property]
        public string SETUSERID { get; set; }
        [Property]
        public string SETUSERNAME { get; set; }
    }
}